package com.liugui.euam;

/**
 * 行星
 */
public enum Planet {
    MERCURY(3.302e+23,2.439e6),
    ;

    private final  double mass;
    private final  double radius;
    private final  double surfaceGravity;

    private static final double G = 6.67300E-11;

    Planet(double mass, double radius) {
        this.mass = mass;
        this.radius = radius;
        this.surfaceGravity = G * mass / (radius * radius);
    }

    public double surfaceWeight(double mass){
        return mass * surfaceGravity ; //F = ma
    }


}
